package com.legal.aid.app.mapper;

import com.legal.aid.app.domain.vo.NewsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface AppNewsMapper {

    List<NewsVo> selectNewsList(NewsVo newsVo);

    NewsVo selectNewsByNewsId(Long newsId);

    List<NewsVo> selectNewsListByIds(@Param("ids") List<Long> ids);

    void batchUpdateViewCount(@Param("viewCountMap") Map<String, Integer> viewCountMap);
}
